package cn.exrick.xboot.modules.content.serviceimpl.mybatis;

import cn.exrick.xboot.modules.base.dao.mapper.PermissionMapper;
import cn.exrick.xboot.modules.base.entity.Permission;
import cn.exrick.xboot.modules.base.service.mybatis.IPermissionService;
import cn.exrick.xboot.modules.content.dao.mapper.HontPermissionMapper;
import cn.exrick.xboot.modules.content.dao.mapper.HontUserRoleMapper;
import cn.exrick.xboot.modules.content.entity.HontPermission;
import cn.exrick.xboot.modules.content.entity.HontRole;
import cn.exrick.xboot.modules.content.entity.HontUserRole;
import cn.exrick.xboot.modules.content.service.mybatis.IHontPermissionService;
import cn.exrick.xboot.modules.content.service.mybatis.IHontUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IHontPermissionServiceImp extends ServiceImpl<HontPermissionMapper, HontPermission> implements IHontPermissionService {

    @Autowired
    private HontPermissionMapper permissionMapper;

    @Override
    public List<HontPermission> findByUserId(String userId) {

        return permissionMapper.findByHontUserId(userId);
    }
}
